//
//  ZKThemeManager.m
//  ZAKER
//
//  Created by Anyfish002 on 16/2/2.
//  Copyright © 2016年 yaohongchao. All rights reserved.
//

#import "ZKThemeManager.h"

@implementation ZKThemeManager

+(ZKThemeManager*)shareInstance{
    static ZKThemeManager *manager=nil;
    static dispatch_once_t once;
    dispatch_once(&once, ^{
        manager = [ZKThemeManager new];
    });
    return manager;
}

-(void)setThemeMode:(ZKThemeMode)themeMode{
    _themeMode = themeMode;
    if(themeMode == ZKThemeMode_Night){
        [[UITabBar appearance] setBackgroundImage:[UIImage imageWithColor:[UIColor bgColor]]];
        [[UITabBar appearance] setTintColor:[UIColor colorWithHexString:@"cccccc"]];
    }else{
        [[UITabBar appearance] setBackgroundImage:[UIImage imageWithColor:[UIColor whiteColor]]];
        [[UITabBar appearance] setTintColor:[UIColor zkColor]];
    }
}

-(void)setThemeType:(ZKThemeType)themeType{
    _themeType = themeType;
    switch (themeType) {
        case ZKThemeType_Blue:
        {
            
        }
            break;
            
        default:
            break;
    }
}

@end
